<%--
  Created by IntelliJ IDEA.
  User: zelin
  Date: 2021/11/15
  Time: 9:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css"
          integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
            integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
            crossorigin="anonymous"></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.params.js"></script>
    <style>
        #form{
            width: 300px;
            text-align: left;
            margin: auto;
        }
    </style>
</head>
<body>
<div id="form">
    <form class="form-inline" action="/Tel/addTel.do" method="post">
        <div class="form-group">
            <label for="telName">回访人姓名</label>
            <input type="text" class="form-control" id="telName" name="telName">
        </div>
        <div class="form-group">
            <label for="telTime">回访时间</label>
            <input type="date" class="form-control" id="telTime"  name="telTime">
        </div>
        <div class="form-group">
            <label for="visitReason">回访分类</label>
            <select class="form-control" id="visitReason" name="visitReason">
                <option value="1">售后回访</option>
                <option value="2">销售意向回访</option>
                <option value="3">满意度回访</option>
            </select>
        </div>
        <div class="form-group">
            <label for="visitReturn">回访结果</label>
            <input type="text" class="form-control" id="visitReturn" name="visitReturn">
        </div>
        <div class="form-group">
            <label for="visitType">回访方式</label>
            <select class="form-control" id="visitType" name="visitType">
                <option value="1">电话</option>
                <option value="2">面试</option>
                <option value="3">网络</option>
            </select>
        </div>
        <input name="cid" type="hidden" id="cid">
        <button type="submit" class="btn btn-default">Send</button>
    </form>
</div>
<script>
    $(function(){
        let cid = getUrlParam("cid");
        $("#cid").val(cid)
    })
    function getUrlParam(name)
    {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r!=null) return unescape(r[2]); return null; //返回参数值
    }
</script>
</body>
</html>
